<%@ page language="java" contentType="text/html; charset=UTF-8" 
    pageEncoding="UTF-8"%>
<%@ page import="java.util.Date"%>    
<%@ include file="/WEB-INF/views/include.inc.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>飞行计划及风温上传管理系统</title>
<link href="${contextPath}/styles/dwz/themes/default/style.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="${contextPath}/styles/dwz/themes/css/core.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="${contextPath}/styles/dwz/themes/css/print.css" rel="stylesheet" type="text/css" media="print"/>
<link href="${contextPath}/styles/validationEngine/css/validationEngine.jquery.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="${contextPath}/styles/ztree/css/zTreeStyle.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="${contextPath}/styles/uploadify/css/uploadify.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="${contextPath}/styles/treeTable/themes/default/treeTable.css" rel="stylesheet" type="text/css" />
<link href="${contextPath}/styles/keta/css/keta.css" rel="stylesheet" type="text/css" />
<link href="${contextPath}/styles/dwz/themes/css/top.css" rel="stylesheet" type="text/css" />
<link href="${contextPath}/styles/dwz/themes/css/bottom.css" rel="stylesheet" type="text/css" />
<link href="${contextPath}/styles/dwz/themes/css/home.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link href="${contextPath}/styles/dwz/themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
<![endif]-->
<!--[if lte IE 9]>
<script src="${contextPath}/styles/dwz/js/speedup.js" type="text/javascript"></script>
<![endif]-->
<script src="${contextPath}/styles/jquery/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/jquery.bgiframe.js" type="text/javascript"></script>

<script src="${contextPath}/styles/treeTable/jquery.treeTable.min.js" type="text/javascript"></script>
<%-- form验证 --%>
<script src="${contextPath}/styles/validationEngine/js/languages/jquery.validationEngine-zh_CN.js" type="text/javascript" charset="utf-8"></script>
<script src="${contextPath}/styles/validationEngine/js/jquery.validationEngine-2.6.4.js" type="text/javascript" charset="utf-8"></script>
<%--
<script src="${contextPath}/styles/dwz/js/dwz.core.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.util.date.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.barDrag.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.drag.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.tree.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.accordion.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.ui.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.theme.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.switchEnv.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.alertMsg.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.contextmenu.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.navTab.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.tab.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.resize.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.dialog.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.dialogDrag.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.sortDrag.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.cssTable.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.stable.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.taskBar.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.ajax.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.pagination.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.database.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.datepicker.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.effects.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.panel.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.checkbox.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.history.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.combox.js" type="text/javascript"></script>
<script src="${contextPath}/styles/dwz/js/dwz.print.js" type="text/javascript"></script>
--%>

<script src="${contextPath}/styles/dwz/js/dwz.min.js" type="text/javascript"></script>

<script src="${contextPath}/styles/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>
<%-- 自定义JS --%>
<script src="${contextPath}/styles/dwz/js/customer.js" type="text/javascript"></script>
<script src="${contextPath}/styles/keta/js/keta.js" type="text/javascript"></script>
<%-- upload --%>
<script src="${contextPath}/styles/uploadify/scripts/jquery.uploadify.min.js" type="text/javascript"></script>
<%-- zTree --%>
<script src="${contextPath}/styles/ztree/js/jquery.ztree.all-3.5.min.js" type="text/javascript"></script>
  <script language="JavaScript" src="${contextPath}/styles/fushionChart/JSClass/FusionCharts.js"></script>   

<script type="text/javascript">
	// 飞行计划/风温数据监控所使用的定时器变量
	var twid;
	var tflp;
	// 用于表示图标对象
	var chartflp;
	var chart;
	
	$(function(){	 
		DWZ.init("${contextPath}/styles/dwz/dwz.frag.xml", {
			loginUrl:"${contextPath}/login/timeout", 
			loginTitle:"登录",	// 弹出登录对话框
			debug:false,	// 调试模式 【true|false】
			callback:function(){
				initEnv();
				$("#themeList").theme({themeBase:"${contextPath}/styles/dwz/themes"});
			}
		});
	});  
	
//	// 关闭浏览器or标签页or最小化右键关闭时，注销session 
//	var ClosesWindow = true;
//	function CheckWindowClosed()
//	{
//	alert("1234");
//		window.location.href = "${contextPath}/logout";
//	} 
</script>

</head>
<!-- 经实践：onBeforeUnload这个事件只有IE支持 -->
<!--  onBeforeUnload="if(ClosesWindow == true){CheckWindowClosed();}" onmouseover="ClosesWindow=false;" onmouseout="ClosesWindow=true;" -->
<body scroll="no">
	<div id="layout">
	  <%--<div id="header" class="top">--%>
		  <div id="header" class="top">
		  <div class="top_logo"></div>
		  <div class="top_font">
		      <%--<div class="top_font_1">--%>
		       <%--<ul class="top_font_1_ul">--%>
		         <%--<li><a class="link_1" href="#">中文</a></li>--%>
		         <%--<li>|</li>--%>
		         <%--<li><a class="link_1" href="#">ENGLISH</a></li>--%>
		       <%--</ul>     --%>
		      <%--</div>--%>
		      <div style="clear:both;"></div>
		      <div class="top_font_2">
		       <ul class="top_font_2_ul">
		         <li><img src="${contextPath}/styles/dwz/themes/default/images/home2.png" /><a class="link_1" href="${contextPath}/management/index">主页</a></li>
		         <li>|</li>
		         <li><img src="${contextPath}/styles/dwz/themes/default/images/user.png" />用户${login_user.username }您好</li>
		         <li>|</li>
		         <li><a href="${contextPath}/management/index/updateBase" class="link_1" target="dialog" mask="true" width="550" height="250">修改用户信息</a></li>
		         <li>|</li>
		         <li><a  class="link_1"   href="${contextPath}/management/index/updatePwd" target="dialog" mask="true" width="500" height="200">修改密码</a></li>
		         <li>|</li>
		         <li><img src="${contextPath}/styles/dwz/themes/default/images/exit.png" /><a class="link_1" href="${contextPath}/logout">退出</a></li>
		         <li>|</li>
		       </ul> 
		      </div> 
		   </div>
	  </div>  <!-- <div id="header" class="top"> -->	
	  <div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
				</div>
			</div>
			
			<div id="sidebar">
				<div class="toggleCollapse"> 
				<h2><img style="vertical-align: bottom;"  src="${contextPath}/styles/dwz/themes/default/images/menu.png" alt="" />菜单</h2><div>collapse</div></div>
				<div class="accordion" fillSpace="sideBar">
					<c:forEach var="level1" items="${menuModule.children }">
						<div class="accordionHeader">
							<h2><span>Folder</span>${level1.name }</h2>
						</div>
						<div class="accordionContent">
							<ul class="tree treeFolder expand">
							<c:forEach var="level2" items="${level1.children }">
								<li>
									<dwz:menuAccordion child="${level2 }" urlPrefix="${contextPath }"/>
								</li>
							</c:forEach>
							</ul>
						</div>												
					</c:forEach>				
				</div>
			</div>
	  </div> <!-- <div id="leftside"> -->
	  <div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">														
							<li tabid="main"  reloadFlag="true" ><a href="javascript:void(0)"><span><span class="">主页</span></span></a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
				    <div class="tabsMore" style="display: none;">more</div>
				    <div class="tabsCloseAll" onclick="navTab.closeAllTab();">关闭全部</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:void(0)">主页</a></li>
				</ul>
				<div class="navTab-panel tabsPageContent layoutBox">
					<div class="page unitBox">
						  <%--<table class="mainbox" cellspacing="0" cellpadding="0">--%>
							    <%--<tr>--%>
							      <%--<td width="50%">--%>
										<%--<div class="home_1">--%>
										  <%--<ul>--%>
										  	<%--<li><span><a rel="tongji_flp" id="tongji_flp" target="navTab" href="${contextPath}/management/main/monitor/mFlightPlanList" style="font-family:微软雅黑;font-size:12px; font-weight:bold; color:#FFF;">飞行计划上传</a>情况统计分析图</span></li>--%>
										  <%--</ul>--%>
										   <%--<div id="chartflpdiv"></div>--%>
										<%--</div>--%>
							      <%--</td>--%>
							      <%--<td width="50%">--%>
										<%--<div class="home_2">--%>
										  <%--<ul>--%>
										  	<%--<li><span><a rel="tongji_wid"  id="tongji_wid" target="navTab" href="${contextPath}/management/main/monitor/mWindInfoList" style="font-family:微软雅黑;font-size:12px; font-weight:bold; color:#FFF;">风温数据上传</a>情况统计分析图</span></li>--%>
									      <%--</ul>--%>
									  	  <%--<div id="chartwiddiv">--%>
									  	  <%--</div>--%>
										<%--</div>--%>
							      <%--</td>--%>
							    <%--</tr>--%>
						 <%--</table>--%>
						 <table class="mainbox" cellspacing="0" cellpadding="0">
						    <tr>
						      <td width="50%">
						        <div class="home_4">
						          <ul>
						            <li><span>系统与运行情况\功能模块及接口运行情况</span></li>
						          </ul>
						          <table width="100%" class="table_1">		 
									 	<tbody>
										 	<c:forEach var="item" items="${serviceStatuss}">
												<tr >
													<td>${item.serviceName}</td>
													<!-- <td>${item.updateTime}</td> -->
													<td><fmt:formatDate value="${item.updateTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
												    <td> 
													    <c:choose>
															<c:when test="${item.status == '1'}">服务正常运行</c:when>
															<c:when test="${item.status == '2'}">
																<font color=red>服务异常</font>
															</c:when>
														</c:choose>
												    </td>
												</tr>			
											</c:forEach>
										</tbody>
									</table>	
						        </div>
						      </td>
						      <td width="50%" >
						        <div class="home_3">
						          <ul>
						            <li><span>在线用户</span></li>
						          </ul>
						          <table width="100%" class="table_1">		 
									<tbody>
										<c:forEach var="item" items="${users}">
											<tr >
												<td>${item.username}</td> 
												<td>${item.realname}</td>
											</tr>			
										</c:forEach>
									</tbody>
								   </table>	
						        </div>
						      </td>
						    </tr>
						  </table>	 
				    </div><!-- <div class="page unitBox"> -->
				</div><!-- <div class="navTab-panel tabsPageContent layoutBox"> -->
			</div> <!-- <div id="navTab" class="tabsPage"> -->	
	  </div> <!-- <div id="container"> -->
	  <div class="bottom" id="footer">
		 <div class="bottom_1">
		        <span class="bottom_logo"> </span>
		  		<%--<span> Copyright © 2012-2014,All Rights Reserve.</span>--%>
		 </div>
	  </div>
	</div><!-- <div id="layout"> -->


</body>
</html> 